﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using HZ.MBSM.BLL;
using HZ.MBSM.Model;
using HZ.MBSM.DBUtility;

public partial class Agency_ProjectList : System.Web.UI.Page,IPageDescribe
{
    protected void Page_Load(object sender, EventArgs e)
    {

        if (HZ.MBSM.BLL.Login.CheckAssert(this.UseAccountType))
        {
            GetProjectData();
        }
    }

    public void GetProjectData()
    {

        Int64  AccountId =0;
        HZ.MBSM.Model.Account _Account = (HZ.MBSM.Model.Account)Session["Account"];
        if (_Account != null)
        {
            AccountId = SysFun.ToLong(_Account.AccountId);
        }
        AgencyBiding  Agb = new AgencyBiding();
        DataTable dt =Agb.GetBidProjectDataTable(AccountId);
         
        GridView1.DataSource = dt.DefaultView;
        GridView1.DataBind();
        dt.Dispose(); 
        //db.Close();
    }

    #region IPageDescribe 成员


    public string Describe
    {
        get { return "进入项目"; }
    }
    public string Name
    {
        get { return "进入项目"; }
    }
    public string ParentName
    {
        get { return "招标项目列表"; }
    }

    public System.Collections.Generic.List<HZ.MBSM.DAL.AccountType> UseAccountType
    {
        get
        {
            System.Collections.Generic.List<HZ.MBSM.DAL.AccountType> _AccountType = new System.Collections.Generic.List<HZ.MBSM.DAL.AccountType>();
            _AccountType.Add(HZ.MBSM.DAL.AccountType.enumAttorney);           
            return _AccountType;
        }
    }

    #endregion



    
}
